cmake_minimum_required(VERSION 3.21)

project(CaptionComposer VERSION 2.0 LANGUAGES CXX)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

set(CMAKE_INSTALL_PREFIX ${PROJECT_BINARY_DIR}/install)

find_package(Qt6 6.5 REQUIRED COMPONENTS Quick)

qt_standard_project_setup(REQUIRES 6.5)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)

include(lib/QoolUI3/qool_qml_project_setup.cmake)
load_qoolui_standard_options()

set(QOOLUI_USE_INTERNAL_X3CORE OFF)
set(QOOLUI_INCLUDE_EXAMPLE OFF)
set(CXSTUDIO_USE_INTERNAL_X3CORE OFF)

add_subdirectory(lib/X3Core)
add_subdirectory(lib/cx-studio)
add_subdirectory(lib/QoolUI3)



add_subdirectory(src/PCCStudio)
add_subdirectory(src/CaptionComposerLite)
